home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Technology Seed / August 1998 ADC Seed CD.toast / Mac OS 8.5b2 / allegro-b2-pseudo-SDK / RIncludes / MacWindows.r < prev    next >
Encoding:
Text File  |  1998-07-17  |  6.7 KB  |  213 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        MacWindows.r
  3.  
  4.      Contains:    Window Manager Interfaces.
  5.  
  6.      Version:    Technology:    Mac OS 8.1
  7.                  Release:    Allego Seed, Use with 3.1 Universal Interfaces
  8.  
  9.      Copyright:    © 1997-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18.  
  19. #ifndef __MACWINDOWS_R__
  20. #define __MACWINDOWS_R__
  21.  
  22. #ifndef __CONDITIONALMACROS_R__
  23. #include "ConditionalMacros.r"
  24. #endif
  25.  
  26.  
  27. #include "Collections.r"
  28.  
  29. #define kWindowDefProcType                 'WDEF'
  30. #define kStandardWindowDefinition         0                    /*  for document windows and dialogs */
  31. #define kRoundWindowDefinition             1                    /*  old da-style window */
  32. #define kFloatingWindowDefinition         124                    /*  for floating windows */
  33.  
  34.                                                             /*  for use with kStandardWindowDefinition  */
  35. #define kDocumentWindowVariantCode         0
  36. #define kModalDialogVariantCode         1
  37. #define kPlainDialogVariantCode         2
  38. #define kShadowDialogVariantCode         3
  39. #define kMovableModalDialogVariantCode     5
  40. #define kAlertVariantCode                 7
  41. #define kMovableAlertVariantCode         9                    /*  for use with kFloatingWindowDefinition  */
  42. #define kSideFloaterVariantCode         8
  43.  
  44.                                                             /*  Resource IDs for theme-savvy window defprocs  */
  45. #define kWindowDocumentDefProcResID     64
  46. #define kWindowDialogDefProcResID         65
  47. #define kWindowUtilityDefProcResID         66
  48. #define kWindowUtilitySideTitleDefProcResID  67
  49.  
  50.                                                             /*  Proc IDs for theme-savvy windows  */
  51. #define kWindowDocumentProc             1024
  52. #define kWindowGrowDocumentProc         1025
  53. #define kWindowVertZoomDocumentProc     1026
  54. #define kWindowVertZoomGrowDocumentProc  1027
  55. #define kWindowHorizZoomDocumentProc     1028
  56. #define kWindowHorizZoomGrowDocumentProc  1029
  57. #define kWindowFullZoomDocumentProc     1030
  58. #define kWindowFullZoomGrowDocumentProc  1031
  59.  
  60.                                                             /*  Proc IDs for theme-savvy dialogs  */
  61. #define kWindowPlainDialogProc             1040
  62. #define kWindowShadowDialogProc         1041
  63. #define kWindowModalDialogProc             1042
  64. #define kWindowMovableModalDialogProc     1043
  65. #define kWindowAlertProc                 1044
  66. #define kWindowMovableAlertProc         1045
  67.  
  68.                                                             /*  procIDs available in Appearance 1.0.1 or later  */
  69. #define kWindowMovableModalGrowProc     1046
  70.                                                             /*  Proc IDs for top title bar theme-savvy floating windows  */
  71. #define kWindowFloatProc                 1057
  72. #define kWindowFloatGrowProc             1059
  73. #define kWindowFloatVertZoomProc         1061
  74. #define kWindowFloatVertZoomGrowProc     1063
  75. #define kWindowFloatHorizZoomProc         1065
  76. #define kWindowFloatHorizZoomGrowProc     1067
  77. #define kWindowFloatFullZoomProc         1069
  78. #define kWindowFloatFullZoomGrowProc     1071
  79.  
  80.                                                             /*  Proc IDs for side title bar theme-savvy floating windows  */
  81. #define kWindowFloatSideProc             1073
  82. #define kWindowFloatSideGrowProc         1075
  83. #define kWindowFloatSideVertZoomProc     1077
  84. #define kWindowFloatSideVertZoomGrowProc  1079
  85. #define kWindowFloatSideHorizZoomProc     1081
  86. #define kWindowFloatSideHorizZoomGrowProc  1083
  87. #define kWindowFloatSideFullZoomProc     1085
  88. #define kWindowFloatSideFullZoomGrowProc  1087
  89.  
  90. #define kWindowNoPosition                 0x0000
  91. #define kWindowDefaultPosition             0x0000
  92. #define kWindowCenterMainScreen         0x280A
  93. #define kWindowAlertPositionMainScreen     0x300A
  94. #define kWindowStaggerMainScreen         0x380A
  95. #define kWindowCenterParentWindow         0xA80A
  96. #define kWindowAlertPositionParentWindow  0xB00A
  97. #define kWindowStaggerParentWindow         0xB80A
  98. #define kWindowCenterParentWindowScreen  0x680A
  99. #define kWindowAlertPositionParentWindowScreen  0x700A
  100. #define kWindowStaggerParentWindowScreen  0x780A
  101.  
  102. #define kWindowCenterOnMainScreen         0x00000001
  103. #define kWindowCenterOnParentWindow     0x00000002
  104. #define kWindowCenterOnParentWindowScreen  0x00000003
  105. #define kWindowCascadeOnMainScreen         0x00000004
  106. #define kWindowCascadeOnParentWindow     0x00000005
  107. #define kWIndowCascadeOnParentWindowScreen  0x00000006
  108. #define kWindowAlertPositionOnMainScreen  0x00000007
  109. #define kWindowAlertPositionOnParentWindow  0x00000008
  110. #define kWindowAlertPositionOnParentWindowScreen  0x00000009
  111.  
  112.  
  113.  
  114. /*--------------------------wind • Extensible Window Resource Format------------------*/
  115. /* The extensible window resource format is a flattened collection. */
  116.  
  117. type 'wind' as 'flac';
  118.  
  119.  
  120. /*--------------------------wctb • Window Color Lookup Table--------------------------*/
  121. /*
  122.     wctb_RezTemplateVersion:
  123.         0 - original 
  124.         1 - more color parts and implicit header    <-- default
  125. */
  126. #ifndef wctb_RezTemplateVersion
  127.     #ifdef oldTemp                            /* grandfather in use of “oldTemp” */
  128.         #define wctb_RezTemplateVersion 0
  129.     #else
  130.         #define wctb_RezTemplateVersion 1
  131.     #endif
  132. #endif
  133.  
  134.  
  135. type 'wctb' {
  136. #if wctb_RezTemplateVersion == 0
  137.             unsigned hex longint;                                    /* ctSeed                */
  138.             integer;                                                /* ctFlags                */
  139. #elif wctb_RezTemplateVersion == 1
  140.             unsigned hex longint = 0;                                /* ctSeed                */
  141.             integer = 0;                                            /* ctFlags                */
  142. #endif
  143.             integer = $$Countof(ColorSpec) - 1;                        /* ctSize                */
  144.             wide array ColorSpec {
  145.                     integer        wContentColor,                        /* value                */
  146.                                 wFrameColor,
  147.                                 wTextColor,
  148.                                 wHiliteColor,
  149.                                 wTitleBarColor,
  150.                                 wHiliteLight,
  151.                                 wHiliteDark,
  152.                                 wTitleBarLight,
  153.                                 wTitleBarDark,
  154.                                 wDialogLight,
  155.                                 wDialogDark,
  156.                                 wTingeLight,
  157.                                 wTingeDark;
  158.                     unsigned integer;                                /* RGB:    red                */
  159.                     unsigned integer;                                /*        green            */
  160.                     unsigned integer;                                /*        blue            */
  161.             };
  162.     };
  163.  
  164.  
  165. /*----------------------------WIND • Window Template------------------------------------*/
  166. /*
  167.     WIND_RezTemplateVersion:
  168.         0 - original                             <-- default
  169.         1 - additional positioning info at end    
  170. */
  171. #ifndef WIND_RezTemplateVersion
  172.     #define WIND_RezTemplateVersion 1
  173. #endif
  174.  
  175.  
  176. type 'WIND' {
  177.         rect;                                                    /* boundsRect            */
  178.         integer         documentProc,                            /* procID                */
  179.                         dBoxProc,
  180.                         plainDBox,
  181.                         altDBoxProc,
  182.                         noGrowDocProc,
  183.                         movableDBoxProc,
  184.                         zoomDocProc = 8,
  185.                         zoomNoGrow = 12,
  186.                         rDocProc = 16;
  187.         byte            invisible, visible;                     /* visible                */
  188.         fill byte;
  189.         byte            noGoAway, goAway;                        /* goAway                */
  190.         fill byte;
  191.         unsigned hex longint;                                    /* refCon                */
  192.         pstring         Untitled = "Untitled";                /* title                */
  193.         
  194. #if WIND_RezTemplateVersion == 1
  195.     /*    The following are window positioning options used by System 7.0 and later */
  196.         align word;
  197.         unsigned integer                noAutoCenter = 0x0000,
  198.                                         centerMainScreen = 0x280a,
  199.                                         alertPositionMainScreen = 0x300a,
  200.                                         staggerMainScreen = 0x380a,
  201.                                         centerParentWindow = 0xa80a,
  202.                                         alertPositionParentWindow = 0xb00a,
  203.                                         staggerParentWindow = 0xb80a,
  204.                                         centerParentWindowScreen = 0x680a,
  205.                                         alertPositionParentWindowScreen = 0x700a,
  206.                                         staggerParentWindowScreen = 0x780a;
  207. #endif
  208. };
  209.  
  210.  
  211. #endif /* __MACWINDOWS_R__ */
  212.  
  213.